#!/usr/bin/php
<?php
class ConsultaCliente {
  public $token; // string
  public $cpf; // string
}

class ConsultaClienteResponse {
  public $ConsultaClienteResult; // int
}


/**
 * wsConsultaCliente class
 * 
 *  
 * 
 * @author    {author}
 * @copyright {copyright}
 * @package   {package}
 */
class wsConsultaCliente extends SoapClient {

  private static $classmap = array(
                                    'ConsultaCliente' => 'ConsultaCliente',
                                    'ConsultaClienteResponse' => 'ConsultaClienteResponse',
                                   );

  public function wsConsultaCliente($wsdl = "ConsultaCliente.wsdl", $options = array()) {
    foreach(self::$classmap as $key => $value) {
      if(!isset($options['classmap'][$key])) {
        $options['classmap'][$key] = $value;
      }
    }
    parent::__construct($wsdl, $options);
  }

  /**
   *  
   *
   * @param ConsultaCliente $parameters
   * @return ConsultaClienteResponse
   */
  public function ConsultaCliente(ConsultaCliente $parameters) {
    return $this->__soapCall('ConsultaCliente', array($parameters),       array(
            'uri' => 'http://tempuri.org/',
            'soapaction' => ''
           )
      );
  }

}

$consultaClienteClass = new ConsultaCliente();
$consultaClienteClass->{"token"} = "TESTE";
$consultaClienteClass->{"cpf"} = "135.618.797-80";
//135.618.797-80

$soapClass = new wsConsultaCliente();
$result = $soapClass->ConsultaCliente($consultaClienteClass);

print_r($result);

?>
